# plugins/weather.py WeatherPlugin
from datetime import datetime 
import requests 
from  PluginBase import PluginBase, tool

class Timer(PluginBase):
    @tool(description="获取系统时间,询问现在的时间时调用。如：现在几点了，现在几点钟，几点了")
    def get_Timer_now() -> str: 
        now= datetime.now().strftime("%Y-%m-%d %H:%M %A")        
        return now
    
    @tool(description="获取系统时间对应的星期。如：今天是星期几，星期几")
    def get_Timer_weekday() -> str: 
        #now= datetime.now().weekday()
        now= datetime.now().strftime("%A")      
        return now